import Vue from 'vue'
import App from './App'
import {toast,nav,isEmpty,formatFloat} from './api/functions.js'
import {api} from './api/api.js'  // API 链接
import {https} from './api/http.js' // 请求方式中间件

Vue.config.productionTip = false
Vue.prototype.$toast=toast;
Vue.prototype.$nav=nav;
Vue.prototype.$isEmpty=isEmpty;
Vue.prototype.$formatFloat=formatFloat;
Vue.prototype.$api=api;
Vue.prototype.$http=https;

import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
Vue.component('mescroll-body', MescrollBody)

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
